package the_Crash;

import java.util.ArrayList;
import java.util.List;

import repast.simphony.query.space.grid.GridCell;
import repast.simphony.query.space.grid.GridCellNgh;
import repast.simphony.random.RandomHelper;
import repast.simphony.space.SpatialMath;
import repast.simphony.space.continuous.ContinuousSpace;
import repast.simphony.space.continuous.NdPoint;
import repast.simphony.space.grid.Grid;
import repast.simphony.space.grid.GridPoint;

public class DumbCar extends Car {

	public DumbCar(SourceSink destination, SourceSink source, double maxSpeed,
			double accel, double deccel, GridPoint location, Grid<Object> grid,
			ContinuousSpace<Object> space) {
		super(destination, source, maxSpeed, accel,
				deccel, location, grid, space);
	}

	@Override
	public String toString() {
		GridPoint currentLocation = grid.getLocation(this);
		return "DumbCar [destination=" + destination.location + ", source=" + source.location
				+ ", tickCount=" + tickCount + ", speed=" + speed
				+ ", maxSpeed=" + maxSpeed + ", currentHeading="
				+ currentHeading + ", futureHeading=" + futureHeading
				+  ", nextLight="
				+ nextLight.location
				+ ", currentLcoation = " + currentLocation + "]";
	}

	@Override
	protected void receiveMessage(Message m) {
		return; //do nothing since this is a dumb car
		
	}
	
}
